import { Component } from '@angular/core';
import {NavController,ViewController} from 'ionic-angular';
import {Signup} from '../signup/signup';
import {Login} from '../login/login';
@Component({
  selector: 'page-sign-orlogin',
  templateUrl: 'sign-orlogin.html',
})
export class SignOrlogin {


  constructor(
  	public navCtrl: NavController,
  	public viewCtrl:ViewController
  	) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad SignOrlogin');
  }
  // 关闭当前页面
  dismiss() {
    this.viewCtrl.dismiss();
  }
  //打开登录
  openSignup(){
  	this.navCtrl.push(Signup);
  }
  //打开注册
  openLogin(){
  	this.navCtrl.push(Login,{page:"SignOrlogin"});
  }

}
